package com.mlnx.yingbaisui.sys.controller;

import com.mlnx.common.entity.Response;
import com.mlnx.yingbaisui.sys.service.YbsUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.shan.spring.base.BaseController;
import org.shan.spring.base.annotations.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by amanda.shan on 2020/5/19.
 */
@Api(value = "赢百岁用户接口", tags = {"赢百岁用户接口"})
@SysLog(title = "赢百岁用户")
@RestController
@RequestMapping("ybs/user/")
public class YbsUserController extends BaseController {

    @Autowired
    private YbsUserService ybsUserService;


    @ApiOperation(value = "注册用户", notes = "")
    @PostMapping("/register")
    public Response register(@RequestParam Long uuid, @RequestParam String name) {
        ybsUserService.register(uuid, name);
        return result();
    }

}
